package com.tsingteng.cosfun.ui.costar.publish;

import com.tsingteng.cosfun.bean.CommBean;
import com.tsingteng.cosfun.bean.HomeBean;
import com.tsingteng.cosfun.bean.OpusBean;
import com.tsingteng.cosfun.bean.UserBean;
import com.tsingteng.cosfun.bean.VideoMusicBean;
import com.tsingteng.cosfun.bean.VideoSignBean;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

import java.util.List;

/**
 * 描述 :
 * 创建人: Administrator.
 * 时间:2018/8/6
 * qq(872179966)
 */

public class VideoModel extends BaseModel implements IVideoModel {

    /**
     * 得到七牛的签名
     * @param callback
     */
    @Override
    public void getSignaTure(String type,RxObserver<VideoSignBean> callback) {
        doRxRequest().getSignaTure(type).compose(RxSchedulers.io_main()).subscribe(callback);
    }

    @Override
    public void getPublishVideo(String id, String json, RxObserver<CommBean> rxObserver) {
        doRxRequest().getPublishVideo(id,json).compose(RxSchedulers.io_main()).subscribe(rxObserver);
    }

    @Override
    public void getVideoMusic(String pageNo, String pageSize, RxObserver<CommBean> rxObserver) {
        doRxRequest().getVideoMusic(pageNo,pageSize).compose(RxSchedulers.io_main()).subscribe(rxObserver);
    }

}
